import Axios from "/@/utils/Axios";


export function getAchievementType(data: any): Promise<any> {
    return Axios.get("/backapi/achievementTypes", data);
}

export function addAchievementType(data: any): Promise<any> {
    return Axios.post("/backapi/achievementTypes", data);
}

export function editAchievementType(data: any): Promise<any> {
    return Axios.put(`/backapi/achievementTypes/${data.id}`, data);
}

export function updateAchievementTypeStatus(data: any): Promise<any> {
    return Axios.patch(`/backapi/achievementTypes/${data.id}/status`, data);
}
